package com.itheima.service;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@Service
@FeignClient(value = "hystrix-provider",fallback = LocalItemServiceImpl.class)
public interface LocalItemService {
    @RequestMapping(value="/hi",method = RequestMethod.GET)
    public String hi(@RequestParam(value = "id") String id);

    @RequestMapping(value="/hello",method = RequestMethod.GET)
    public String hello(@RequestParam(value = "id") String id);

    @RequestMapping(value="/hi1",method = RequestMethod.GET)
    public String hi1(@RequestParam(value = "name") String name);

    @RequestMapping(value="/hello1",method = RequestMethod.GET)
    public String hello1(@RequestParam(value = "name") String name);

    @RequestMapping(value="/hi2",method = RequestMethod.GET)
    public String hi2(@RequestParam(value = "age") String age);

    @RequestMapping(value="/hello2",method = RequestMethod.GET)
    public String hello2(@RequestParam(value = "age") String age);
}
